<?php

namespace App\Admin\Actions\Extensions\User;

use App\Admin\Forms\User\UserInviteTepCodeBgForm;
use Dcat\Admin\Grid\Tools\AbstractTool;
use Dcat\Admin\Widgets\Modal;

class UserInviteTmpCodeBgButton extends AbstractTool
{
    protected $style = 'btn btn-primary';

    public function html()
    {
        return '<button class="btn btn-primary grid-refresh btn-mini btn-outline" style="margin-right:3px">
    <a href="'.admin_url('invite_benefit/itc_bg_config').'" target="_blank"><i class="fa fa-file-image-o"></i><span class="d-none d-sm-inline">&nbsp; 背景图设置</span></a>
</button>';
        return Modal::make()
            ->lg()
            ->title($title = '背景图设置')
            ->body(UserInviteTepCodeBgForm::make())
            ->button("<button class='btn btn-primary'><i class=\"fa  fa-file-image-o\"></i> &nbsp;{$title}</button> &nbsp;");
    }
}
